//
//  ComDetailViewC.m
//  WHSport
//
//  Created by ccjoy-jimneylee on 15/5/12.
//  Copyright (c) 2015年 jimneylee. All rights reserved.
//

#import "ComDetailViewC.h"
#import <UIImageView+AFNetworking.h>

@interface ComDetailViewC ()

@end

@implementation ComDetailViewC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.title =@"赛事详情";
    
    _titLab.text = self.comEnty.title;
    _contLab.text = self.comEnty.content;
    NSString *img = [NSString stringWithFormat:@"http://218.93.12.178:8080/hhw-api/%@",
                     self.comEnty.picPath];
    NSURL *url = [NSURL URLWithString:img];
    [_picImg setImageWithURL:url];
//    UIBarButtonItem *leftBtn = [[UIBarButtonItem alloc]
//                                 initWithBarButtonSystemItem:
//                                UIBarButtonSystemItemReply
//                                target:self action:@selector(center)];
//    self.navigationController.navigationItem.leftBarButtonItem =leftBtn;

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

//- (void)center{
//    
//    [self.navigationController dismissViewControllerAnimated:YES completion:^{
//    }];
//
//}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
